package com.tangcco.lockwell.repository;

import com.tangcco.lockwell.domain.MessageLikesRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageLikesRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MessageLikesRecord record);

    int insertSelective(MessageLikesRecord record);

    MessageLikesRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MessageLikesRecord record);

    int updateByPrimaryKey(MessageLikesRecord record);

    List<MessageLikesRecord> selectByMessageIdAndLikesUserId(MessageLikesRecord messageLikesRecord);

    int deleteByMessageIdAndLikesUserId( @Param("likesUserId") Integer likesUserId, @Param("messageId") Integer messageId);
}